package com.example.myapplication9.weeek3.experience;

public class Link1 {
    public static void main(String[] args) {
        LinkedList link=new LinkedList();
        node head =new node(5);

        link.insernode(10,head);
        link.insernode(11,head);
        link.insernode(12,head);
        link.insernode(15,1,head);
        link.insernode(18,4,head);
        link.printNode(head);
        link.deletenode(head,11);
        link.printNode(head);
        head=link.deletenode(2,head);
        link.printNode(head);


    }
}
